package common.base;

import java.sql.SQLException;
import java.util.List;

/**
 * 持久层的基类
 * @param <T>
 */
public interface BaseDao<T> {
	
	//添加
	boolean insert(T t) throws SQLException;
	
	//删除
	void deleteById(String id) throws SQLException;
	
	//修改
	void update(T t) throws SQLException;
	
	//根据id查询指定数据
	T queryByid(String id) throws SQLException;
	
	//查询所有数据
	List<T> queryAll() throws SQLException;

}
